package cn.ac.ict.debs.testsetGenerator;

import java.util.Vector;

public class Service 
{
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Vector<String> getInputs() {
		return inputs;
	}
	public void addInput(String i) {
		for(String s : this.inputs)
		{
			if(s.equals(i))
			{
				//System.out.println("!!!");
				return;
			}
		}
		this.inputs.add(i);
	}
	public Vector<String> getOutputs() {
		return outputs;
	}
	public void addOutput(String o) {
		this.outputs.add(o);
	}
	
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}

	public String getFullName()
	{
		return this.getClassName() + "." + this.getName();
	}
	
	public boolean isConstructor() {
		return isConstructor;
	}
	public void setConstructor(boolean isConstructor) {
		this.isConstructor = isConstructor;
	}
	public String getModifier() {
		return modifier;
	}
	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public int getQos() {
		return qos;
	}
	public void setQos(int qos) {
		this.qos = qos;
	}

	private int id = 0;
	private String name = null;
	private String className = null;
	private boolean isConstructor = false;
	private String modifier = null;
	private int qos = 0;
	private Vector<String> inputs = new Vector<String>();
	private Vector<String> outputs = new Vector<String>();
}
